#pragma once
#include <iostream>
#include <string>
#include "Controller.h"
namespace GASPUMP
{

class dispenser
{
public:

	typedef enum status {POST, ON, OFF, MAINT, RESUP, ERRORR} STATUS;

	dispenser(void);

	~dispenser(void);

	status operPOST (void);
	status operON (void);
	status operOFF (void);
	status operMAINT (void);
	status operRESUP (void);
	
	void execute();

	

	//cardreader CR;
	//fuelpump FP;
	//fuelselection FS;
	//keypad KP;
	//LCDdisplay LCD;

private:
	Controller crtl;
	status getstatus() const;
	status m_status;
	
};

}
